package yc.star.friend.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import yc.star.common.controller.BaseController;
import yc.star.common.domain.PageQueryDTO;
import yc.star.common.domain.TableDataInfo;
import yc.star.friend.service.IUserMessageService;

@RequestMapping("/user/message")
@RestController
public class UserMessageController extends BaseController {

    @Autowired
    private IUserMessageService userMessageService;

    @GetMapping("/list")
    public TableDataInfo list (PageQueryDTO pageQueryDTO) {
        return userMessageService.list(pageQueryDTO);
    }

}